<?php
session_start();//读取名为PHPSESSID（若是没有改变默认值）的cookie值
require 'mysql.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    echo "收到数据,数据为:".$_POST["name"];
    switch ($_POST['lx'])
    {
        case 'zhuce':
            echo '注册开始';
            break;
        default:
            break;
    }

}
//sha1() 40位加密函数
if ($_SERVER["REQUEST_METHOD"] == "GET") {
    //echo "收到数据,数据为:".$_GET;
    echo "ok1";
    switch ($_GET['lx'])
    {
        case 'zhuce':
            echo 1;
            break;
        default:
            break;
    }
}
